package me.a_littlesquid.origin.tasks;

import me.a_littlesquid.origin.Origin;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;

import java.io.File;

public class wait extends BukkitRunnable {
private Player player;
private Origin plugin;
    public wait(Player player){
        this.player=player;
    }
    @Override
    public void run() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        plugin = Origin.getInstance();
        potion potion=new potion(player);
        potion.runTask(plugin);
    }
}
